package connection;

import components.Device;

public class ConnectionFactory {

    private static ConnectionFactory factory;

    private ConnectionFactory() {}

    public static ConnectionFactory getInstance() {
        if (factory == null) {
            factory = new ConnectionFactory();
        }
        return factory;
    }

    public IConnection getConnection(Device device) {
        return new TCPIPConnection(device);
    }

}
